#!/usrbin/python
import os ,statvfs 

disk_dict={}

def diskload():

    for dev in os.popen("df -k").read().split("\n")[1:]:

        mount_point = dev.split(" ")[-1]

        if mount_point : 

            vfs       = os.statvfs(mount_point)
            total     = vfs[statvfs.F_BLOCKS]*vfs[statvfs.F_BSIZE]
            available = vfs[statvfs.F_BAVAIL]*vfs[statvfs.F_BSIZE]

            disk_dict[ "diskload_" + mount_point ] = str(total) + "," + str(available)

    return disk_dict

_dict = diskload()

if __name__ == '__main__':                                                                                                        
    diskload()
